package com.triones.yjj.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 客户分销记录
 *
 * @Author: triones
 */
@TableName(value = "tr_member_distribution_record")
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MemberDistributionRecordDO extends BaseEntity {
    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 活动id
     */
    private Long activityId;
    /**
     * 分销等级
     */
    private Integer distributionGrade;
    /**
     * 客户id
     */
    private Long memberId;
    /**
     * 客户微信用户id
     */
    private Long memberWxUserId;
    /**
     * 第三人客户ID
     */
    private Long thirdMemberId;
    /**
     * 第三人客户微信用户id
     */
    private Long thirdMemberWxUserId;
    /**
     * 第三人订单ID
     */
    private Long thirdPlaceOrderId;
    /**
     * 获得佣金
     */
    private BigDecimal kickback;
    /**
     * 系统用户ID
     */
    private Long userId;
    /**
     * 佣金发放方式
     */
    private String moneyGrantType;

    /**
     * 上级客户id(二级分销)
     */
    private Long upLevelMemberId;
    /**
     * 上级客户微信用户id(二级分销)
     */
    private Long upLevelMemberWxUserId;
}
